package com.inlycat.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.inlycat.entity.UserInfo;
import com.inlycat.mapper.UserInfoMapper;
import com.inlycat.service.UserInfoService;

/**
 * @author jarvan4dev@163.com
 * @since 2015年8月24日下午2:32:35
 * @category 
 **/

@Service("userInfoService")
public class UserInfoServiceImpl implements UserInfoService {
	
	@Resource
	private UserInfoMapper userInfoMapper;

	@Override
	public boolean updateSelective(UserInfo userInfo) {
		boolean result = userInfoMapper.updateSelective(userInfo);
		return result;
	}

	@Override
	public UserInfo selectByUserId(Long userId) {
		UserInfo userInfo = userInfoMapper.selectByUserId(userId);
		return userInfo;
	}

}
